//
//  SNSManager.h
//  KiklinkApp
//
//  Created by LF on 14-9-25.
//  Copyright (c) 2014年 Kiklink. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "StatusCode.h"

/**
 新浪微博
 */
extern NSString *const UMShareToSina;

/**
 手机QQ
 */
extern NSString *const UMShareToQQ;

/**
 短信
 */
extern NSString *const UMShareToSms;

/**
 微信好友
 */
extern NSString *const UMShareToWechatSession;

/**
 微信朋友圈
 */
extern NSString *const UMShareToWechatTimeline;


@interface SNSManager : NSObject

//需在应用启动时调用一次以完成初始化
+ (void)initManager;

//不验证Token是否过期
+ (BOOL) isLoggedInWithPlatform: (NSString *) platform;
+ (BOOL) isLoggedInAndTokenNotExpiredWithPlatform: (NSString *) platform;

+ (void) openSNSLoginUIWithPlatform: (NSString*) platform ViewController: (UIViewController*) sourceViewController callback:(Callback)callback;

+ (void) userInfoWithCallback: (Callback)callback;

//于word中返回用户名
+ (void) userNameWithCallback: (Callback) callback;

+ (void) userTokenWithCallback: (Callback) callback;

//
+ (void) openSNSShareUIWithSharedText:(NSString*)text shareImage:(UIImage*)image sourceViewController:(UIViewController*)sourceViewController;
@end